/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package air.eb;

/**
 *
 * @author Keith Augustsson
 */
public class Aircraft {

    private String model;
    private String manufactor;
    private int nrSeats;

    public Aircraft() {
    }

    public Aircraft(String model, String manufactor, int nrSeats) {
        this.model = model;
        this.manufactor = manufactor;
        this.nrSeats = nrSeats;
    }

    public String getManufactor() {
        return manufactor;
    }

    public String getModel() {
        return model;
    }

    public int getNrSeats() {
        return nrSeats;
    }

    public void setManufactor(String manufactor) {
        this.manufactor = manufactor;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setNrSeats(int nrSeats) {
        this.nrSeats = nrSeats;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Aircraft other = (Aircraft) obj;
        if ((this.model == null) ? (other.model != null) : !this.model.equals(other.model)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 31 * hash + (this.model != null ? this.model.hashCode() : 0);
        return hash;
    }
}
